package com.zpz.framework.zpzoauth.config.xss;

import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Configuration
@ConditionalOnExpression("!'${ignore}'.isEmpty()")
@ConfigurationProperties(prefix = "ignore")
public class XssandsqlIgnoreUrl {
    private List<String> xssUrls = new ArrayList<>();

    public List<String> getXssUrls() {
        return xssUrls;
    }

    public void setXssUrls(List<String> xssUrls) {
        this.xssUrls = xssUrls;
    }
}
